﻿<UserControl x:Class="GKS.XAML.UserControls.HeadMgmtUC"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:GKS.Model.ViewModels;assembly=GKS.Model"
             mc:Ignorable="d" 
             d:DesignHeight="610" d:DesignWidth="850">
    
    <UserControl.DataContext>
        <local:HeadMgmtUC></local:HeadMgmtUC>
    </UserControl.DataContext>

    <Grid Height="590" Width="840">
        <Label Content="Review all account heads:" Height="28" HorizontalAlignment="Left" Margin="91,34,0,0" Name="label1" VerticalAlignment="Top" />
        <DataGrid Name="dataGridAllHeads"
                  IsReadOnly="True"
                  GridLinesVisibility="None"
                  HorizontalAlignment="Stretch" Margin="94,60,96,85" VerticalAlignment="Stretch"
                  Grid.Row="1" 
                  Grid.Column="1"
                  AutoGenerateColumns="True"                                                  
                  IsSynchronizedWithCurrentItem="True" 
                  Background="Transparent"
                  RowHeaderWidth="25"
                  RowBackground="White"
                  AlternatingRowBackground="Azure"
                  AlternationCount="2"
                  ItemsSource="{Binding Path=Heads}" >
        </DataGrid>
        
        <Button Content="Add" Height="23" HorizontalAlignment="Left" Margin="586,520,0,0" Name="buttonAdd" VerticalAlignment="Top" Width="75" Click="buttonAdd_Click" />
        <Button Content="View/Edit" Height="23" HorizontalAlignment="Left" Margin="670,520,0,0" Name="buttonView" VerticalAlignment="Top" Width="75" IsEnabled="False" />
        <!--<Button Content="OK" Height="23" HorizontalAlignment="Left" Margin="532,522,0,0" Name="buttonOK" VerticalAlignment="Top" Width="75" IsEnabled="False" />-->
        <!--<Button Content="Cancel" Height="23" HorizontalAlignment="Left" Margin="615,522,0,0" Name="buttonCancel" VerticalAlignment="Top" Width="75" IsEnabled="False" />-->

    </Grid>
</UserControl>
